public class Demo3 {
    //不能重复start同一线程
    public static void main(String[] args) throws InterruptedException{
        Thread t = new Thread(()->{
            System.out.println("thread");
        });
        Thread t2 = new Thread(()->{
            System.out.println("thread2");
        });
        t.start();
        Thread.sleep(1000);
        t2.start();
    }
}
